package reflect;

import java.lang.annotation.Annotation;

public class ReflectDemo11 {
    public static void main(String[] args) throws Exception {
        //访问Pers

        //
        Class cls = Class.forName("reflect.Person");
        boolean maek = cls.isAnnotationPresent(Annotation.class);
        if (maek){
            System.out.println("有注解!");
        }else {
            System.out.println("没有注解!");
        }
    }
}
